require(["common", "hash_routie", "coAjax", "queryString", "href", "jQuery"], function(jSouper, hash_routie, coAjax, QueryString, href, jQuery) {
	/*
	 * HASH路由
	 */
	hash_routie({
		html_url: "./pages/dotnar.com/default/",
		js_url: "./js/dotnar.com/",
		hash_prefix: "default/:page",
		default_hash: "main",
		teleporter: "main"
	});

	/*
	 * 改变菜单
	 */
	App.set('$Event.changeNav', function() {
		App.set('navdata', $(this).attr('data'));
	});
	/*
	 * 获取天气
	 */
	$(function() {
		$.getScript("http://int.dpool.sina.com.cn/iplookup/iplookup.php? format=js", function(json) { //获取地理位置
			// mycity = remote_ip_info['city'];
			// console.log(mycity)
			$.getScript("http://php.weather.sina.com.cn/js.php?" + $.param({ //获取天气
				city: remote_ip_info['city'], //城市
				day: 0,
				password: "DJOYnieT8234jlsK"
			}), function(json) {
				App.set("$Cache.extendInfo.weather", city + '\n' + status1 + '\n' + temperature1 + '°');
			});
		});
	});

	/*
	 * 显示时钟
	 */
	(function _setTime() {
		App.set("$Cache.extendInfo.time", (new Date).toLocaleString());
		setTimeout(_setTime, 1000)
	}())
});